package com.endava.Parsing;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

public class Parsing2 {
	public static void main(String[] args) {
		Pattern p=Pattern.compile("(ABCijk)");//the expression
		Matcher m=p.matcher("ABCijk ABCijk ABCijk");//the source
		while(m.find()){
			System.out.println(m.start()+" "+m.group());
		}
	}
}
